package com.leapp.sk.sever.login

import com.example.util.ObjectProcessingUtil
import com.leapp.sk.bean.SearchClassListEntity
import com.leapp.sk.bean.response.login.SearchClassListResponseEntity

/**
 * 班级列表server
 * @author  chaohaipeng  on 2018/8/17.
 */
class ClassListSever {
    private object mHolder {
        val instance = ClassListSever()
    }
    companion object {
        fun getInstance(): ClassListSever {
            return mHolder.instance
        }
    }
    /**
     * 说起列表数据
     */
    fun getListData(obj: SearchClassListResponseEntity):List<SearchClassListEntity>{
        val data = obj?.data
        val objMandatoryConversionClass = ObjectProcessingUtil.objMandatoryConversionClass(data, mutableListOf<SearchClassListEntity>())
       return objMandatoryConversionClass
    }


}